package cn.edu.ctbu.api01.controller;


import cn.edu.ctbu.api01.domain.Student;
import cn.edu.ctbu.api01.repository.StudentRepository;
import cn.edu.ctbu.api01.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Controller
@RequestMapping("/student")
public class StudentController {

    @Autowired
    StudentService studentService;
    @Autowired
    private StudentRepository studentRepository;

    @GetMapping("list")
    public String getAll() {
        return "student/list" ;
    }
}
